/**
 * @file
 * @auth jinguangguo
 * @date 2017/1/10
 */

import Vue from 'vue';
import lib from '../common/lib';

export default Vue.extend({
    components: {

    },
    data() {
        return {

        }
    },
    created() {

    },
    watch: {

    },
    methods: {
        onSendSuccess() {
            this.rules.identifyingCode.$setRight('验证码已发送至' + lib.getEmailSuffix() + '，15分钟内有效');
        },
        onSendFail(rep) {
            this.rules.identifyingCode.$setError(rep.msg);
        }
    }
});